package practice03;

/**
 * @author Administrator
 * @version V1.0
 * @ProjectName:IntelliJ IDEA
 * @PackageName: practice03
 * @ClassName: Violin
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @date 2019/12/8 14:22
 * @Copyright 大牛版板所有
 */
public class Violin extends Instrument {
    public Violin() {
    }

    public Violin(String name, double price) {
        super(name, price);
    }

    @Override
    public void play(){
        System.out.println(this.getName()+"是一个价值在"+this.getPrice()+"左右的乐器，需要演奏者站着拉奏！");
    }
}
